{[include file="../../../../library/view/templates/header.tpl"]}
<script src="{[$host]}js/stock/stockAlertList.js" type="text/javascript" language="javascript"></script>
<div class="BSpace10px">
</div>
<div id="BMainTitleH1">
    {[$stock_EC0001_H1]}</div>
<div id="BError">{[include file="../../../../library/view/templates/tag/error.tpl"]}</div>
<div class="BSpace10px">
</div>
<table width="180" border="0" cellpadding="0" cellspacing="0" style="margin-left: 15px;">
<tr>
    <td width="70%" align="center" class="title" style="border: 1px solid #dfdfdf; background-color: #F9F9F9;
        padding: 3px 8px;">
        {[$stock_EC0001_H2]}
    </td>
    <td width="30%" align="center" style="border: 1px solid #dfdfdf; background-color: #F9F9F9;
        padding: 3px 8px;">
         {[$intGoodsNum]}{[$stock_EC0001_Num]}
    </td>
</tr>
</table>
        <div class="BSpace10px">
        </div>
        <h2>{[$stock_EC0001_Title2]}</h2>
            <form id="goodsListFrom" name="goodsListFrom" method="post">
                <input type="hidden" id="hidPageModel" name="hidPageModel" value="{[$strPageModel]}">
            </form>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td>
                        <div class="BFenceTopLeft">
                        </div>
                        <div class="BFenceTopRight">
                        </div>
                    </td>
                </tr>
                <tr>
                    <td class="BFenceSideLine">
                            <table width="100%" border="0" cellpadding="0" cellspacing="0" class="BGrayLineTable">
                                <tr>
                                    <td width="20%" class="BListLabel">
                                        {[$stock_EC0001_GoodsCode]}
                                    </td>
                                    <td>
                                        <input type="text" id="txtGoodsCode" name="txtGoodsCode" size="30" value="{[$arrCondition.GoodsCode]}"/>
                                    </td>
                                    <td rowspan="3">
                                        <div class="BTextAlignCenter">
                                            <input type="button" id="EC0001OT01" name="EC0001OT01"
                                             value="{[$stock_EC0001_SearCondition]}" onclick="goods_dataSearch()" class="BGrayBtn" />
                                             <div class="BSpace10px"></div>
                                            <input type="button" id="EC0001OT01" name="EC0001OT02"
                                             value="{[$stock_EC0001_Clear]}" class="BGrayBtn" onclick="goods_reset()" />
                                        </div>
                                    </td>
                                </tr>
                                <tr>
                                    <td width="20%" class="BListLabel">
                                        {[$stock_EC0001_GoodsName]}
                                    </td>
                                    <td>
                                        <input type="text" id="txtGoodsName" name="txtGoodsName" size="30" maxlength="128" value="{[$arrCondition.GoodsName]}"/>
                                    </td>
                                </tr>
                                <tr>
                                    <td class="BListLabel">
                                        {[$stock_EC0001_InNum]}
                                    </td>
                                    <td>
                                        <input type="radio" id="rdoNumAll" name="rdoNum" {[if $strNumFlg == "0" || $strNumFlg == ""]} checked {[/if]} onclick="goods_setTextType('0')"/>&nbsp;
                                        <label for="rdoNumAll">{[$stock_EC0001_GetAll]}</label>&nbsp;&nbsp;
                                        <input type="radio" id="rdoNumLeft" name="rdoNum" {[if $strNumFlg == "1"]} checked {[/if]} onclick="goods_setTextType('1')"/>&nbsp;
                                        <label for="rdoNumLeft">{[$stock_EC0001_GetLeft]}</label>&nbsp;&nbsp;
                                        <input type="radio" id="rdoNumStock" name="rdoNum" {[if $strNumFlg == "2"]} checked {[/if]} onclick="goods_setTextType('2')"/>&nbsp;
                                        <label for="rdoNumStock">{[$stock_EC0001_GetExcut]}</label>&nbsp;&nbsp;
                                        <input type="radio" id="rdoNumDefined" name="rdoNum" {[if $strNumFlg == "3"]} checked {[/if]} onclick="goods_setTextType('3')"/>&nbsp;
                                        <label for="rdoNumDefined">{[$stock_EC0001_GetSet]}</label>
                                        <input type="text" id="txtNumFrom" name="txtNumFrom" size="8" class="BTextAlignRight" value="{[$arrCondition.StockNumFrom]}"{[if $strNumFlg != "3"]} disabled {[/if]}/>
                                        &nbsp;～&nbsp;
                                        <input type="text" id="txtNumTo" name="txtNumTo" size="8" class="BTextAlignRight"  value="{[$arrCondition.StockNumTo]}" {[if $strNumFlg != "3"]} disabled {[/if]}/>
                                    </td>
                                </tr>
                                
                            </table>
                       </td>
                </tr>
                <tr>
                    <td>
                        <div class="BFenceBottomLeft">
                        </div>
                        <div class="BFenceBottomRight">
                        </div>
                    </td>
                </tr>
            </table>
            <div  class="BSpace10px">
            </div>
<div id="tbec_" class="BTabFenceTop">
<ul>
    <a href="###">
    <li id="tbec_1" {[if $strPageModel =="1"]}class="BTabCurrentTab" {[else]}class="BTabOtherTab"{[/if]} onClick="x:HoverLi(1);">
    <div id="borderright">&nbsp;</div>
    {[$stock_EC0001_alert]}
    </li>
    </a>
    <a href="###">
    <li id="tbec_2" {[if $strPageModel =="2"]}class="BTabCurrentTab" {[else]}class="BTabOtherTab"{[/if]}onClick="i:HoverLi(2);">
    <div id="borderright">&nbsp;</div>
    {[$stock_EC0001_ConditionEdit]}
    </li>
    </a>
</ul>
 <div class="BClearBoth"></div>
</div>
            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr>
                    <td class="BFenceSideLine">
                        
                        
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tr>
                                <td width="65%" style="vertical-align:bottom;">
                            <span style="color: #000;">{[$stock_EC0001_Notice1]}<br/>
                                {[if $strPageModel =="1"]}
                            {[$stock_EC0001_Notice2]}{[/if]}</span>
                                </td>
                                <td align="right" class="BPasingArea">
                                    <div id="orderHead">
                                        {[include file="../../../../library/view/templates/tag/order.tpl"]}
                                    </div>
                                    <div id="pageHead" >
                                        {[include file="../../../../library/view/templates/tag/pager.tpl"]}
                                    </div>
                                </td>
                            </tr>
                        </table>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0" class="BListTable" id="tblDataTable">
                            <tr id="trHeader_orderHead">
                                {[if $strPageModel =="1"]}
                                <td width="5%" class="BListTableHeader">
                                    {[$stock_EC0001_Check]}
                                </td>
                                {[/if]}
                                <td width="5%" class="BListTableHeader">
                                    No.
                                </td>
                                <td width="9%" id="GOODS_CODE" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$stock_EC0001_GoodsCode]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                <td width="11%" id="GOODS_NAME" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$stock_EC0001_GoodsName]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                <td width="13%" class="BListTableHeader">
                                    {[$stock_EC0001_Variation]}
                                </td>
                                {[if $strPageModel =="1"]}
                                <td width="7%" id = "STOCK_NUM" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$stock_EC0001_InNum]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                <td width="8%" id = "STOCK_SUGST" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$stock_EC0001_Suggest]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                <td width="8%" id = "SUPPLIERNUM" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$stock_EC0001_SupplierNum]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                {[else]}
                                <td width="8%" id = "SUGGEST_TP" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$stock_EC0001_Suggest]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                <td width="7%" id = "STOCK_MIN" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$stock_EC0001_Min]}{[$stock_EC0001_InNum]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                <td width="8%" id = "STOCK_MAX" class="BListLabel" onclick="initOrder('orderHead')">
                                    {[$stock_EC0001_Max]}{[$stock_EC0001_InNum]}
                                    {[include file="../../../../library/view/templates/tag/orderView.tpl"]}
                                </td>
                                {[/if]}
                            </tr>
                          {[foreach from = $arrGoods key = key item = msg]}
                            <tr {[if $key%2 == 1]}class="BListTableGray"{[/if]}>
                                {[if $strPageModel =="1"]}
                                <td width="3%" align="center">
                                {[if $msg.Checkfg == 1]}
                                <input type="checkbox" id="chkGoods" name="chkGoods" value="{[$msg.GOODS_NO]},{[$msg.SUGGEST]}"/>
                                {[elseif $msg.Checkfg == 2]}
                                <input type="checkbox" id="chkGoods" name="chkGoods" disabled value="{[$msg.GOODS_NO]},{[$msg.SUGGEST]}"/>
                                {[/if]}
                                </td>
                                {[/if]}
                                <td width="7%" align="right">
                                    {[$fromRecord+$key]}
                <input type="hidden" id="hidDataVersion" name="hidDataVersion" value="{[$msg.GOODS_NO]},{[$msg.DATA_VERSION]}"/>
                                </td>
                                <td width="9%">
                                    <a target="_blank" href = "{[$host]}goods/goodsDetails/index/goodsNo/{[$msg.GOODS_NO]}">{[$msg.GOODS_CODE]}</a>
                                </td>
                                <td width="11%" >
                                <a target="_blank" href = "{[$host]}goods/goodsDetails/index/goodsNo/{[$msg.GOODS_NO]}">{[$msg.GOODS_NAME]}</a>
                                    
                                </td>
                                <td width="13%">
                                <span title = "{[$msg.VARIATION]}">
                                    {[$msg.SIMVARIATION]}
                                    </span>
                                </td>
                                {[if $strPageModel =="1"]}
                                <td width="8%" align="right">
                                    {[$msg.STOCK_NUM]}
                                </td>
                                <td width="18%" align="right">
                                    {[$msg.SUGGEST]}
                                </td>
                                <td width="8%" align="right">
                                    <span title = "{[$msg.NAME_GROUP]}">
                                    {[$msg.SUPPLIERNUM]}
                                     </span>
                                </td>
                                {[else]}
                                <td width="8%" align="right">
                                    <select name="selSuggest" id="selSuggest">
                                    <option value="1" {[if $msg.SUGGEST_TP=="1"]}selected{[/if]}>{[$stock_EC0001_StockLimit]}</option>
                                    <option value="2" {[if $msg.SUGGEST_TP=="2"]}selected{[/if]}>{[$stock_EC0001_Sales]}</option>
                                    </select>
                                </td>
                                <td width="8%" align="right">
                                    <input type="text" name="txtStockMin" id="txtStockMin" value="{[$msg.STOCK_MIN]}" style="text-align:right"/>
                                </td>
                                <td width="8%" align="right">
                                    <input type="text" name="txtStockMax" id="txtStockMax" value="{[$msg.STOCK_MAX]}" style="text-align:right"/>
                                </td>
                                {[/if]}
                                
                            </tr>
                          {[/foreach]}
                         </table>
                         <table width="100%" border="0" cellpadding="0" cellspacing="0" class="BPasingArea">
                    <tr>
                        <td align="right">
                            <span id="pageFoot">
                                {[assign var="pageSizeShow" value=false]}
                                {[include file="../../../../library/view/templates/tag/pager.tpl"]}
                            </span>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <div class="BFenceBottomLeft">
                </div>
                <div class="BFenceBottomRight">
                </div>
            </td>
        </tr>
</table>
<div class="BSpace20px"></div>
<div  align="right">
{[if $strPageModel =="1"]}
    <input type="button" id="btnOrder" name="btnOrder" value="{[$stock_EC0001_MakeOrder]}" onclick="order()" style="margin-right:30px" class="BGrayBtn"/>
{[else]}

    <input type="button" id="btnSave" name="btnSave" value="{[$stock_EC0001_Save]}" onclick="save()" style="margin-right:30px" class="BGrayBtn"/>
{[/if]}
</div>
<div class="BSpace20px"></div>
{[include file="../../../../library/view/templates/footer.tpl"]}